<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Salt-encrypts a value</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.radius-request-authenticator.html">radius_request_authenticator</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.radius-send-request.html">radius_send_request</a></div>
 <div class="up"><a href="ref.radius.html">Radius 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.radius-salt-encrypt-attr" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">radius_salt_encrypt_attr</h1>
  <p class="verinfo">(PECL radius &gt;= 1.3.0)</p><p class="refpurpose"><span class="refname">radius_salt_encrypt_attr</span> &mdash; <span class="dc-title">Salt-encrypts a value</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.radius-salt-encrypt-attr-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>radius_salt_encrypt_attr</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$radius_handle</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   )</div>

  <p class="para rdfs-comment">
   Applies the RADIUS salt-encryption algorithm to the given value.
  </p>
  <p class="para">
   In general, this is achieved automatically by providing the
   <strong><code>RADIUS_OPTION_SALT</code></strong> option to an attribute setter
   function, but this function can be used if low-level request construction
   is required.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.radius-salt-encrypt-attr-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">data</code></em></dt>

     <dd>

      <p class="para">
       The data to be salt-encrypted.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.radius-salt-encrypt-attr-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the salt-encrypted data  或者在失败时返回 <strong><code>FALSE</code></strong>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.radius-salt-encrypt-attr-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.radius-put-addr.html" class="function" rel="rdfs-seeAlso">radius_put_addr()</a> - Attaches an IP address attribute</span></li>
    <li class="member"><span class="function"><a href="function.radius-put-attr.html" class="function" rel="rdfs-seeAlso">radius_put_attr()</a> - Attaches a binary attribute</span></li>
    <li class="member"><span class="function"><a href="function.radius-put-int.html" class="function" rel="rdfs-seeAlso">radius_put_int()</a> - Attaches an integer attribute</span></li>
    <li class="member"><span class="function"><a href="function.radius-put-string.html" class="function" rel="rdfs-seeAlso">radius_put_string()</a> - Attaches a string attribute</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.radius-request-authenticator.html">radius_request_authenticator</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.radius-send-request.html">radius_send_request</a></div>
 <div class="up"><a href="ref.radius.html">Radius 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
